﻿package  
{
	import com.ixiyou.net.ActiveXObject;
	import flash.display.Sprite;
	import flash.external.ExternalInterface;
	import flash.text.TextField;
	import flash.utils.setTimeout;
	/**
	 * ...
	 * @author magic
	 */
	public class activeX extends Sprite
	{
		private var tx:TextField;
		public function activeX() 
		{
			tx= new TextField();
			tx.width = 300;
			addChild(tx);
			tx.text = "noavailable";
			if (ExternalInterface.available) {
				var ao:ActiveXObject = new ActiveXObject("Kongjian.Func");
				tx.text = String(ao.available);
				tx.text = String(ao.add(2.3, 2.2));
				tx.text = String(ao.getName());
				tx.text = String(ao.Hello("Lucifer"));
			}
		}
		
	}

}